package cn.edu.zut.score.core.util;

import io.swagger.annotations.ApiModel;

/**
 * @author zby
 */

@ApiModel(description = "String类工具类封装")
public class StringUtils {
    public static Boolean isNull(String str) {
        return str == null;
    }

    public static Boolean isNotNull(String str) {
        return !isNull(str);
    }

    public static Boolean isBlank(String str) {
        return "".equals(str);
    }

    public static Boolean isNotBlank(String str) {
        return !isBlank(str);
    }

    public static Boolean isNullOrBlank(String str) {
        return (isNull(str) || isBlank(str));
    }

    public static Boolean isNotNullOrBlank(String str) {
        return (isNotNull(str) && isNotBlank(str));
    }
}
